using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPCoco.Tasks
{
    public class EaseElasticIn : EaseTask
    {
        public EaseElasticIn(FiniteTime task, float period)
            : base(task, new EaseElasticInFunction(period))
        {
            this.period = period;
        }

        readonly float period;

        public override Task Clone()
        {
            return new EaseElasticIn((FiniteTime)InnerTask.Clone(), period);
        }

        public override Task Reverse()
        {
            return new EaseElasticOut((FiniteTime)InnerTask.Reverse(), period);
        }
    }
}
